package com.woniuxy.service;

import com.woniuxy.entity.RegMessageAndPatient;
import com.woniuxy.entity.RegisterMessage;
import org.apache.ibatis.annotations.Param;
import com.woniuxy.entity.PageBean;
import com.woniuxy.entity.RegisterMessage;

import java.util.List;

/**
 * @author g2l
 * @create 2022-07-06 17:12
 */
public interface RegisterMessageService {

    //查询前端所需的挂号单信息
    public List<RegMessageAndPatient> selectRegMessageAndPatients(int pageIndex,
                                                                  int pageSize);
    //查询前端所需的挂号单信息条数
    public Integer selectRegMessageAndPatientsCount();

    //根据患者姓名查询前端所需的挂号单信息
    public List<RegMessageAndPatient> selectRegMessageAndPatientsByPatientName
    (int pageIndex,int pageSize,String patientName);

    //根据病人姓名查询前端所需的挂号单信息条数
    public Integer selectCountByPatientName
    (int pageSize,String patientName);

    //根据医生姓名查询前端所需的挂号单信息
    public List<RegMessageAndPatient> selectRegMessageAndPatientsByDoctorName
    (int pageIndex,int pageSize,String doctorName);

    //根据医生姓名查询前端所需的挂号单信息条数
    public Integer selectCountByDoctorName
    (int pageSize,String doctorName);

    /*
    * 获取符合条件的挂号信息表
    * */
    PageBean getAllRegisterMessage(RegisterMessage registerMessage,
                                   int  pageIndex,int pageSize);
    /*
    * 修改挂号单信息
    * */
    void modifyRegisterMessage(RegisterMessage registerMessage);

    //新增一个订单
    int insertRegisterMessage(RegisterMessage registerMessage);
}
